<template>
  <div>
    <div>cookie:{{getAllCookie}}</div>
    <div>session:{{getAllsession}}</div>
    <div>local:{{getAlllocal}}</div>
  </div>
</template>

<script>
import {getAllCookieToken} from '@/utils/storage.js'
export default {
    data(){
        return {
            getAllCookie:null,
            getAllsession:null,
            getAlllocal:null
        }
    },
    created(){
        this.getAllCookie1()
        this.getAllsession1()
        this.getAlllocal1()
    },
    methods:{
        async getAllCookie1(){
            this.getAllCookie=await  getAllCookieToken()
        },
        getAllsession1(){
            this.getAllsession=JSON.stringify(sessionStorage)
        },
        getAlllocal1(){
            this.getAlllocal=JSON.stringify(localStorage)
        }
    }
}
</script>

<style>

</style>